<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 16-5-22
 * Time: 下午12:51
 */
namespace Home\Controller;
use OT\DataDictionary;
use Common\Api\CategoryApi;
class DemoController extends HomeController {
    public function index(){
        $this->display();
    }
    public function api(){
        echo compile(THINK_PATH.'Common/functions.php');

    }
    public function getCourse(){
        $r        = array();
        $Document = D('Document');
        $today = $Document->detail(2);
        $this->ajaxReturn($today);
    }
}